//
//  RequestModel.h
//  ChengHuiTong
//
//  Created by ypwl on 15/11/5.
//  Copyright © 2015年 张文权. All rights reserved.
//

#import <Foundation/Foundation.h>



@interface RequestModel : NSObject

#pragma mark 首页数据

+(void)getRecommendDatasuccessBlock: ( void(^) (id obj) )successBlock
                          failBlock: ( void(^) (id obj) )failBlock;


#pragma mark 我的资产

+(void)getMyAccountsuccessBlock : ( void (^) (id obj) ) successBlock
                      failBlock : ( void (^) (id obj) ) failBlock;




#pragma mark  账户详情

+(void)getaccountDetailsWtihPage:(NSInteger)page SuccessBlock : ( void (^) (id obj) ) successBlock
                                                 failBlock : ( void (^) (id obj) ) failBlock;

#pragma mark 回款计划

+(void)getmyReturnPlanWtihPage:(NSInteger)page option:(NSInteger)option View:(UIViewController*)Controller SuccessBlock : ( void (^) (id obj) ) successBlock
                    failBlock : ( void (^) (id obj) ) failBlock;



#pragma mark  投资记录

+(void)gettenderRecordWtihPage:(NSInteger)page option:(NSInteger)option SuccessBlock : ( void (^) (id obj) ) successBlock
                    failBlock : ( void (^) (id obj) ) failBlock;


#pragma mark  投资记录搜索

+(void)searchTenderWithTitle:(NSString*)title SuccessBlock : ( void (^) (id obj) ) successBlock
                  failBlock : ( void (^) (id obj) ) failBlock;



#pragma mark  发送手机验证码（设置交易密码）

+(void)sendCodeWithPhone:(NSString*)phone SuccessBlock : ( void (^) (id obj) ) successBlock
              failBlock : ( void (^) (id obj) ) failBlock;


#pragma mark  设置交易密码

+(void)sendCodeWithPassword:(NSString*)password code:(NSString*)code smsid:(NSString*)smsid SuccessBlock : ( void (^) (id obj) ) successBlock
                 failBlock : ( void (^) (id obj) ) failBlock;

+(void)getBaseUrlSuccessBlock : ( void (^) (id obj) ) successBlock
failBlock : ( void (^) (id obj) ) failBlock;

+(void)LogOutSuccessBlock : ( void (^) (id obj) ) successBlock
                failBlock : ( void (^) (id obj) ) failBlock;

+(void)loginSuccessWithname:(NSString*)name andPwd:(NSString*)pwd Block : ( void (^) (id obj) ) successBlock
                 failBlock : ( void (^) (id obj) ) failBlock;
+(void)RegisterSuccessWithname:(NSString*)name andPwd:(NSString*)pwd phone:(NSString*)phone code:(NSString*)code smsid:(NSString*)smsid  Block : ( void (^) (id obj) ) successBlock
                    failBlock : ( void (^) (id obj) ) failBlock;


+(void)POSTWithURRL:(NSString*)urlString andDic:(NSDictionary*)dic Block : ( void (^) (id obj) ) successBlock
         failBlock : ( void (^) (id obj) ) failBlock;
@end




